
<div id="loading-mask" class="modal-backdrop fade in" style="z-index:999999;display: none;">
    <div style="text-align: center;margin: 20%;">
        <a>
            <img src="img/loading.gif">
        </a>
    </div>
</div>

<div class="modal hide fade bs-example-modal-sm" id="myAlert-modal" style="z-index: 10000000">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">×</button>
        <h3 id="myAlert-title">提示</h3>
    </div>
    <div class="modal-body">
        <p id="myAlert-content">Hello World</p>
    </div>
    <div class="modal-footer">
        <a id="myAlert-sure" class="btn btn-primary"  data-dismiss="modal">确定</a>
    </div>
</div>
<div class="modal hide fade bs-example-modal-sm"  id="myConfirm-modal">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">×</button>
        <h3 id="myConfirm-title">提示</h3>
    </div>
    <div class="modal-body">
        <p id="myConfirm-content">Hello World</p>
    </div>
    <div class="modal-footer">
        <a  class="btn" data-dismiss="modal">取消</a>
        <a  id="myConfirm-sure" class="btn btn-primary">确定</a>
    </div>
</div>


<!-- start: JavaScript-->

<script src="js/jquery-1.9.1.min.js"></script>
<script src="js/jquery-migrate-1.0.0.min.js"></script>

<script src="js/jquery-ui-1.10.0.custom.min.js"></script>

<script src="js/jquery.ui.touch-punch.js"></script>

<script src="js/modernizr.js"></script>

<script src="js/bootstrap.min.js"></script>

<script src="js/jquery.cookie.js"></script>

<script src='js/fullcalendar.min.js'></script>

<script src='js/jquery.dataTables.min.js'></script>

<script src="js/excanvas.js"></script>
<script src="js/jquery.flot.js"></script>
<script src="js/jquery.flot.pie.js"></script>
<script src="js/jquery.flot.stack.js"></script>
<script src="js/jquery.flot.resize.min.js"></script>

<script src="js/jquery.chosen.min.js"></script>

<script src="js/jquery.uniform.min.js"></script>

<script src="js/jquery.cleditor.min.js"></script>

<script src="js/jquery.noty.js"></script>

<script src="js/jquery.elfinder.min.js"></script>

<script src="js/jquery.raty.min.js"></script>

<script src="js/jquery.iphone.toggle.js"></script>

<script src="js/jquery.uploadify-3.1.min.js"></script>

<script src="js/jquery.gritter.min.js"></script>

<script src="js/jquery.imagesloaded.js"></script>

<script src="js/jquery.masonry.min.js"></script>

<script src="js/jquery.knob.modified.js"></script>

<script src="js/jquery.sparkline.min.js"></script>

<script src="js/counter.js"></script>

<script src="js/retina.js"></script>

<script src="js/custom.js"></script>
<!-- end: JavaScript-->



<script>
   var alertTitle = '', confirmTitle = '';
    var MyAlert = function (content, ff) {
        if (alertTitle != '') {
            $('#myAlert-title').html(alertTitle);
        }
        $('#myAlert-content').html(content);
        $('#myAlert-modal').modal();
        if(ff!=''){
            $('#myAlert-sure').click(ff);
        }else {
            $('#myAlert-sure').click();
        }
    };

   var MyConfirm= function (content, ff) {
        if (confirmTitle != '') {
            $('#myConfirm-title').html(confirmTitle);
        }
        $('#myConfirm-content').html(content);
        $('#myConfirm-modal').modal();
        console.log(typeof  ff);
        if(typeof ff=='function'){
            $('#myConfirm-sure').unbind();
            $('#myConfirm-sure').click(ff);
        }else{
            $('#myConfirm-sure').click(function () {
                $('#myConfirm-sure').unbind();
                console.log('null');
            });
        }
    }
</script>